{% extends 'base.html' %}
{% load staticfiles %}


{% block content %}

    <div class="container ">
        <h3 class="text-center">
            上传词语专用页
        </h3>
        {% if message %}
            <div class="alert alert-warning">{{ message }}</div>
        {% endif %}
        <div class="col-md-4 col-md-offset-4">
            <form class='form-login' action="{% url 'upload' %}" method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <div class="form-group">
                    {{ uploadform.password.label }}
                    {{ uploadform.password }}
                </div>
                <div class="form-group">
                    {{ uploadform.file.label }}
                    {{ uploadform.file }}
                </div>

                <button type="submit" class="btn btn-primary pull-right" id='sum'>上传</button>
            </form>
        </div>
    </div>

{% for result in data %}
     <tr>
         <td>{{ result.id}}</td>
         <td>{{ result.name }}</td>
         <td>{{ result.version_num }}</td>
         <td>{{ result.anr_num}}</td>
         <td>{{ result.crash_num }}</td>
         <td>{{ result.exception_num }}</td>
         <td>{{ result.monkey_is_finish }}</td>
         <td>{{ result.bug_num }}</td>
         <td>{{ result.remark}}</td>
     </tr>
{% endfor %}

{% endblock %}